package com.jvxb.manage.livable.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jvxb.common.constants.DbConstants;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * @author jvxb
 * @since 2022-02-10
 */
@Data
@ToString
public class DataAlterVo {

    @ApiModelProperty(value = "工单标题")
    String title;
    @ApiModelProperty(value = "变更集群")
    Long clusterId;
    @ApiModelProperty(value = "数据库类型")
    String dbType;
    @ApiModelProperty(value = "环境")
    String env;
    @ApiModelProperty(value = "变更内容")
    String command;
    @ApiModelProperty(value = "是否为回滚工单")
    private Integer isRollback;
    @ApiModelProperty(value = "工单描述")
    String createDesc;
    @ApiModelProperty(value = "申请人")
    Employee creator;
    @ApiModelProperty(value = "审批人")
    List<Employee> approvers;
    @ApiModelProperty(value = "审阅人")
    List<Employee> readers;
    @ApiModelProperty(value = "执行人")
    Employee operator;
    @ApiModelProperty(value = "执行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    Date upTime;
    @ApiModelProperty(value = "工单id")
    Long workOrderId;
}
